// 仅示例
import request from '@renderer/utils/request'

// 开启布防
export function openDefenseApi() {
    return request({
        url: '/face/setupAlarmChan',
        method: 'get'
    })
}
// 关闭布防
export function closeDefenseApi() {
    return request({
        url: '/face/closeAlarm',
        method: 'get'
    })
}

//获取本地ip
export function getLocalIpApi() {
    return request({
        url: '/train/getLocalIp',
        method: 'get'
    })
}
ex

//获取播放课件
export function getPlayCoursewareApi(params) {
    return request({
        url: '/train/getPlanInfo',
        method: 'get',
        params
    })
}

//获取方案列表
export function getPlanListApi(params) {
    return request({
        url: '/train/getPlanList',
        method: 'get',
        params
    })

}

//创建通用方案
export function createGeneralPlanApi(params) {
    return request({
        url: '/train/savePlan',
        method: 'post',
        params
    })
}

